# 02-捕获指定异常.py
'''
    捕获名称异常
'''
try:
    print(name)
except NameError as e:
    print(e)